package com.example.web.event;

import lombok.Builder;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.springframework.context.ApplicationEvent;

import java.math.BigDecimal;



@Setter
@Getter
public class PriceEvent extends ApplicationEvent {

    private Long productId;

    private BigDecimal original;

    private BigDecimal current;

    public PriceEvent(Object source, Long productId, BigDecimal original, BigDecimal current) {
        super(source);
        this.productId = productId;
        this.original = original;
        this.current = current;
    }
}
